package cn.wolfcode.shop.cloud.feign;


import cn.wolfcode.shop.cloud.Result;
import cn.wolfcode.shop.cloud.domain.Good;
import cn.wolfcode.shop.cloud.feign.hystrix.GoodsFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

@FeignClient(name = "goods-server",fallback = GoodsFeignHystrix.class)
public interface GoodsFeignApi {

    @RequestMapping("/query")
    Result<List<Good>> queryByIds(@RequestParam("ids") Set<Long> ids);
}
